//
//  UIButton+convenience.swift
//  NewRegProject
//
//  Created by hlt on 2023/2/8.
//

import UIKit

extension UIButton{
    convenience init(title:String,titleColor:UIColor,font:UIFont){
        self.init()
        self.setTitle(title, for: .normal)
        self.setTitleColor(titleColor, for:.normal)
        self.titleLabel?.font = font
    }
    
    convenience init(imageName:String){
        self.init()
        self.setImage(UIImage.init(named: imageName), for: .normal)
    }
    
    convenience init(backImageName:String){
        self.init()
        self.setBackgroundImage(UIImage.init(named:backImageName), for: .normal)
    }
    
}
